if [ -z $1 ]; then
  echo "specify version";
  exit;
fi


wget http://scitouch.net/downloads/dingo-jni-$1-windows.zip
wget http://scitouch.net/downloads/dingo-jni-$1-linux.zip
wget http://scitouch.net/downloads/dingo-jni-$1-osx.zip
unzip dingo-jni-$1-windows.zip
unzip dingo-jni-$1-linux.zip
unzip dingo-jni-$1-osx.zip
mv dingo-jni-$1-linux dingo-jni-$1-universal
cp -r dingo-jni-$1-osx/lib/* dingo-jni-$1-universal/lib
cp -r dingo-jni-$1-windows/lib/* dingo-jni-$1-universal/lib
zip -r -9 dingo-jni-$1-universal.zip dingo-jni-$1-universal
rm dingo-jni-$1-windows.zip
rm dingo-jni-$1-linux.zip
rm dingo-jni-$1-osx.zip
rm -r dingo-jni-$1-windows
rm -r dingo-jni-$1-osx
